package com.es.www.customAop.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @Created by michangtao
 * @Date 2022/2/10 17:21
 * @Description
 */
@Component
@Aspect
public class LogAspect {


    @Before(value = "execution( * com.es.www.customAop.service.CatService.*(..))")
    public void beforePrint(){
        System.out.println("我是前置通知");
    }
}
